<?php

namespace plugins\yifang_backend_account\controller;

class Install extends  Base
{
    /**
     * 安装数据库
     */
    public function database()
    {
        $result = app("YifangBackendAccount_C_install")->database();
        return jsonResponse($result);
    }

    /**
     * 后台菜单
     */
    public function menu()
    {
        $result = app("YifangBackendAccount_C_install")->menu();
        return jsonResponse($result);
    }

    /**
     * 安装
     */
    public function install()
    {
        $result = app("YifangBackendAccount_C_install")->install();
        return jsonResponse($result);
    }

    /**
     * 卸载插件
     */
    public function uninstall()
    {
        $result = app("YifangBackendAccount_C_install")->uninstall();
        return jsonResponse($result);
    }
}